<?php
/*=============================================================================
|| ##################################################################
||	phpFoX Konsort
|| ##################################################################
||
||	Copyright		: (C) 2005-2007 PHPFOX Limited a Reality Fox Creation
||	Contact			: info@phpfox.com
||
||	- phpFoX and all of its source code and files are protected by Copyright Laws.
||
||	- The license for phpFoX permits you to install this software on a single domain (.com, .org, .net, etc.).
||
||	- You may also not remove this copyright screen which shows the copyright information and credits for phpFoX (RealityFOX Creations).
||
||	- phpFoX Konsort is NOT a FREE software - http://www.phpfox.com/license/
||
|| ##################################################################
=============================================================================*/

/* $File: ./site/public/blog/_pre.php, $Author:  $ */

	//App::checkUserAccess('video', array('full', 'read_only'));

	if(	App::checkUserAccess('video', array('read_only'),false))
	{
		$aMenuItems = array(
    	'public.videos'               => App::format('menu.videos.main'),
        'public.videos.categories' => App::format('menu.videos.categories'),
        'public.videos.my-favorites' => App::format('menu.videos.my_favorites'),
      
    );
		
	}
    //create tabs menu
    if(	App::checkUserAccess('video', array('full'),false))
	{
	    $aMenuItems = array(
	    	'public.videos'               => App::format('menu.videos.main'),
	        'public.videos.categories' => App::format('menu.videos.categories'),
	        'public.videos.my-favorites' => App::format('menu.videos.my_favorites'),
	        'public.account.submit.add-video'    => App::format('menu.submit.add-video'),
	        'public.account.myitems.video'    => App::format('menu.account.myitems.video'),
	    );
	}

    if ( App::isStaff() )
    {
    	$aMenuItems['public.videos.reported_all'] = App::format('menu.videos.reported');
    }

    $aParams = array(
    	'sTemplate' => 'TabbedMenu',
        'aMenuItems' => $aMenuItems,
        'sSearchUrl' => 'public.videos'
    );

    $oCompMenu = App::getModuleComponent('Menu', 'Menu', $aParams);
    $srcTabbedMenu = $oCompMenu->process();

    $oTpl = &App::getTemplate();
    $oTpl->assignSrc(array(
    	'srcTabbedMenu' => $srcTabbedMenu,
    ));
?>